package com.liuhaoqi.raletiveblog.service;

import com.liuhaoqi.raletiveblog.entity.Category;
import com.liuhaoqi.raletiveblog.result.business.PageResult.CategoryPageResult;

import java.util.List;

/**
 * @Author liuhaoqi
 * @Date 2020/4/20 15:30
 * @Version 1.0
 */
public interface CategoryService {
    int addCategory(String categoryname);
    int deleteCategoryByCategoryId(Long categoryId);
    List<CategoryPageResult> getAdminCategoryList(int start,int end,int pagesize);
    int updateCategoryByCategoryId(Category category);
    int insertCategory(Category category);
    List<Category> getCategoryList();

    Category getCategoryByCategoryName(String categoryname);
}
